BattleData = { }
local this = BattleData

function BattleData.init()
    this.bgData = { }
    this.bgData.res = "Battle/BackGround/BgRoot"

    -- 初始化角色
    this.roles = { }
    --[[
	table.insert(this.roles, RoleAttribute:new(100,10,10, Weapon.duandao, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.roles, RoleAttribute:new(100,20,8, Weapon.changdao, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.roles, RoleAttribute:new(200,30,15, Weapon.changbing, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.roles, RoleAttribute:new(100,20,8, Weapon.yuancheng, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.roles, RoleAttribute:new(200,30,15, Weapon.faxi, "Battle/Character/Spine GameObject (spineboy)"))
	]]

	table.insert(this.roles, RoleAttribute.new(1))
	table.insert(this.roles, RoleAttribute.new(2))
	table.insert(this.roles, RoleAttribute.new(5))
	table.insert(this.roles, RoleAttribute.new(2))
	table.insert(this.roles, RoleAttribute.new(1))

	this.leftFormationId = 1

	this.enemys = {}
	--[[
	table.insert(this.enemys, RoleAttribute:new(200,10,12, Weapon.faxi, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.enemys, RoleAttribute:new(200,10,12, Weapon.yuancheng, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.enemys, RoleAttribute:new(200,10,12, Weapon.changbing, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.enemys, RoleAttribute:new(200,10,12, Weapon.changdao, "Battle/Character/Spine GameObject (spineboy)"))
	table.insert(this.enemys, RoleAttribute:new(200,10,12, Weapon.duandao, "Battle/Character/Spine GameObject (spineboy)"))
	]]

	
	table.insert(this.enemys, RoleAttribute.new(3))
	this.rightFormationId = 1
	
	--[[
	table.insert(this.enemys, RoleAttribute.new(2, true))
	table.insert(this.enemys, RoleAttribute.new(1, true))
	table.insert(this.enemys, RoleAttribute.new(1, true))
	table.insert(this.enemys, RoleAttribute.new(1, true))
	table.insert(this.enemys, RoleAttribute.new(1, true))

	this.rightFormationId = 2
	]]
	
end

function BattleData.clear()
    this.bgData = nil
    this.roles = nil
    this.enemys = nil
end

